﻿///***************************************************************
/// 시  스  템 : Updms.Crd.Exe
/// 단위시스템 : CRD
/// 계      층 : Execute Layer (Not Transaction)
/// 프로그램명 : Crd2010r_NT
/// 파  일  명 : Crd2010r_NT.cs
/// 설      명 : 카드명세서
///***************************************************************
/// 수정ID 일자       이름     내용
///---------------------------------------------------------------
/// CH001  2008-07-23 송시명   최초 작성
///***************************************************************
using System.Data;
using System.EnterpriseServices;
using System.Runtime.InteropServices;

using SMFramework.Data;


namespace Updms.Crd.Exe
{
	[ComVisible(true)]
	[Transaction(TransactionOption.NotSupported)]
	[JustInTimeActivation(true)]
	public class Crd2010r_NT : Base.AppFramework.RuleBase
	{
		public Crd2010r_NT()
		{
		}

		#region GetCardSummary
		
		[AutoComplete]
		public DataSet GetCardSummary(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Crd_Dac_UPDMS_CRD_REPORT_Crd2010r _dac = new Dac.Crd_Dac_UPDMS_CRD_REPORT_Crd2010r())
			{
				return _dac.GetCardSummary(lo_dp);
			}
		}
		
		#endregion

		#region SelectProcess
		
		[AutoComplete]
		public DataSet SelectProcess(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Crd_Dac_UPDMS_CRD_REPORT_Crd2010r _dac = new Dac.Crd_Dac_UPDMS_CRD_REPORT_Crd2010r())
			{
				return _dac.SelectProcess(lo_dp);
			}
		}
		
		#endregion

		#region IsConfirmYn

		[AutoComplete]
		public bool IsConfirmYn(string ls_card_cd, string ls_paymnt_dt)
		{
			_exeTimeLog.Prepare();
			
			bool lb_result = false;
			using (Dac.Crd_Dac_UPDMS_CRD_REPORT_Crd2010r _dac = new Dac.Crd_Dac_UPDMS_CRD_REPORT_Crd2010r())
			{
				int li_cnt = _dac.GetConfirmNCnt(ls_card_cd, ls_paymnt_dt);

				if (li_cnt > 0)
				{
					lb_result = true;
				}
			}
			
			return lb_result;
		}

		#endregion
	}
}
